/*
 * MoveMilitaryViewTemp.java
 *
 * @author Michael Hansen
 * @author Lukas Thuernagel
 * @author Soeren Warszus
 */

package risk.game;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import javax.swing.*;


public class MoveMilitaryViewTemp extends JPanel{
    
    /**
     * Der Controller
     */
    private FrontController frontController;
    
    /**
     * Der Weiter Button
     */
    private JButton nextButton;
    
    /** Creates a new instance of MoveMilitaryViewTemp */
    public MoveMilitaryViewTemp(FrontController fc) {
        this.frontController = fc;
        
        GridBagLayout gbl      = new GridBagLayout();
        GridBagConstraints gbc = new GridBagConstraints();

        int columnWidths[] = {80, 20};
        int rowHeights[] = {48, 22};
        gbl.columnWidths = columnWidths;
        gbl.rowHeights = rowHeights;
        this.setLayout(gbl);
        
        JLabel header = new JLabel("Phase: Truppenbewegung");
        gbc.gridx = 0;
	gbc.gridy = 0;
        gbc.insets = new Insets(5, 5, 5, 5);
        gbc.anchor = GridBagConstraints.WEST;
        gbl.setConstraints(header, gbc);
        this.add(header);
        
        JLabel text = new JLabel("Bestimmen Sie 2 Gebiete oder klicken sie auf 'Keine Truppenbewegung'");
        gbc.gridx = 0;
	gbc.gridy = 1;
        gbc.insets = new Insets(5, 5, 5, 5);
        gbc.anchor = GridBagConstraints.WEST;
        gbl.setConstraints(text, gbc);
        this.add(text);
        
        nextButton = new JButton();
        nextButton.setActionCommand("keineTruppenbewegung");
        nextButton.addActionListener(this.frontController);
        nextButton.setText("Keine Truppenbewegung");
        nextButton.setSize(20,20);
        gbc.gridx = 0;
	gbc.gridy = 3;
        gbc.insets = new Insets(5, 5, 5, 5);
        gbc.anchor = GridBagConstraints.WEST;
        gbl.setConstraints(nextButton , gbc);
        this.add(nextButton );
    }
}
